<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   template="../WEB-INF/shared/masterlayout.xhtml"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:c="http://java.sun.com/jsp/jstl/core"
   xmlns:util="http://java.sun.com/jsf/composite/components/util"
   xmlns:f="http://java.sun.com/jsf/core">
  <ui:define name="leftCol">
    <ui:include src="components/leftCol.xhtml"/>
  </ui:define>
  <ui:define name="rightCol">
      <div class="reservation">
        <h:form>
        <h1>Bekrafta och slutfor bokning</h1>
        <p>Fran: <h:outputText value="#{ReservationBean.flight.flightPK.fromairport}"/>,
              <h:outputText value="#{ReservationBean.flight.flightPK.fromdestination}"/></p>
        <p>Till: <h:outputText value="#{ReservationBean.flight.toairport}"/>
              <h:outputText value="#{ReservationBean.flight.todestination}"/></p>
        <p>Tid: <h:outputText value="#{ReservationBean.flight.starttime}"/>
                <h:outputText value="#{ReservationBean.flight.startdate}"/></p>
        <p>Pris: <h:outputText value="#{ReservationBean.flight.price}"/></p>
                <h:commandButton
                    value="Bekrafta bokning"
                    actionListener="#{AddReservationBean.addReservation}"
                    action="#{AddReservationBean.navigate}"/>
        </h:form>
      </div>
  </ui:define>
</ui:composition>